package fleet_management

class Maintenance {
	String vehicleNumber
	String causeOfMaintenance
	String typeOfMaintenance
	Long totalCost
	String adminRole
	Date maintenanceDate = new Date()
//	static hasmany =[vehicleDescription:VehicleDescription]
    static constraints = {
		vehicleNumber(blank:false,nullable:false)
		causeOfMaintenance(blank:false,nullable:false)
		typeOfMaintenance(blank:false,nullable:false,maxSize:1000)
		totalCost(blank:false,nullable:false)
    }
	String toString(){
		return "$vehicleNumber"
		}
}
